set (base_SRC
    buffer.cpp
    condvar.cpp
    daemon.cpp
    countdown_latch.cpp
    conf.cpp
    crc32.cpp
    file_ops.cpp
    hash.cpp
    logging.cpp
    mutex.cpp
    status.cpp
    string_util.cpp
    test_harness.cpp
    thread.cpp
    thread_pool.cpp
    timestamp.cpp
    path.cpp
    util.cpp
    )

add_library(dicom_base OBJECT ${base_SRC})
# target_link_libraries(dicom_base pthread uuid)

set (HEADERS
    atomic.h  
    buffer.h  
    byte_order.h  
    coding.h      
    conf.h
    condvar.h          
    countdown_latch.h  
    crc32.h      
    daemon.h
    file_ops.h  
    hash.h      
    logging.h  
    mutex.h    
    path.h    
    random.h  
    slice.h   
    status.h  
    string_util.h   
    test_harness.h  
    thread.h       
    thread_pool.h  
    threadlocal.h  
    util.h
    timestamp.h)

# install(TARGETS dicom_base DESTINATION lib)
# install(FILES ${HEADERS} DESTINATION include/dicom/base)

add_subdirectory(tests)
